<template>
  
    <ZuiXinAnJian :scrollData="scrollData" :servers="0" :scrollHeight="470" title="部件类案件列表"></ZuiXinAnJian>
 
</template>

<script>
import ZuiXinAnJian from '@/components/ZuiXinAnJian/ZuiXinAnJianBj.vue'
import { BuJianMapDB } from '@/api'

export default {
  components: {
    ZuiXinAnJian,
  },
  data() {
    return {
      scrollData: [],
      
    }
  },
  created() {
    // this.getNewOrderList();
  },

  methods: {
    getNewOrderList() {
      BuJianMapDB.getNewOrderList().then(res => {
        res.data.forEach(item => {
          let obj = {
            "staLink": item.staLink,
            "createTime": item.time,
            "orderNum": item.orderNum,
            "sourceTitle": item.sourceTitle,
            "title": item.title,
            "content": item.title,
          }
          if (item.sourceTitle == '数字城管') {
            obj.staFrom = 1
          }else if (item.sourceTitle == '便民热线') {
            obj.staFrom = 2
          } else {
            obj.staFrom = 3
          }
          this.scrollData.push(obj)
        });
        sessionStorage.setItem('scrollDataAJ',JSON.stringify(this.scrollData)); 
      })
      
    }
  }
}
</script>

<style lang="less" scoped>
</style>